package com.whalehearing.tingyou.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.whalehearing.tingyou.common.annotation.Excel;
import com.whalehearing.tingyou.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 听力图对象 hearing_img
 *
 * @author zengjun-qxm
 * @date 2024-09-13
 */
@Data
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@TableName("hearing_img")
@ApiModel(value = "HearingImg", description = "听力图实体")
public class HearingImg extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 听力图id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("听力图id")
    private Long hearingImgId;

    /**
     * 档案id
     */
    @Excel(name = "档案id")
    @ApiModelProperty("档案id")
    private Long audiogramId;

    /**
     * 检测对象
     */
    @Excel(name = "检测对象")
    @ApiModelProperty("检测对象")
    private Integer testSubject;

    /**
     * 听力评级
     */
    @Excel(name = "听力评级")
    @ApiModelProperty("听力评级")
    private String hearingRating;

    /**
     * AI检测意见
     */
    @Excel(name = "AI检测意见")
    @ApiModelProperty("AI检测意见")
    private String aiDetectionOpinion;




    /**
     * 是否删除 0未删除 1已删除
     */
    @Excel(name = "是否删除 0未删除 1已删除")
    @ApiModelProperty("是否删除 0未删除 1已删除")
    private Integer isDeleted;

    /* ---------------------非数据库字段 */
    /**
     * 听力图
     */
    @TableField(exist = false)
    private List<HearingImgValue> hearingImgValueList;
    /* ---------------------非数据库字段 */

}
